package com.weihua.web;

import lombok.Getter;

public enum ResStatus implements ResponseMessage {

    SUCCESS("200", "成功"),
    BODY_NOT_MATCH("400", "请求的数据格式不符"),
    SIGNATURE_NOT_MATCH("401","请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    INTERNAL_SERVER_ERROR("500", "服务器内部错误!"),
    SERVER_BUSY("503","服务器正忙，请稍后再试!"),
    UNKNOWN_ERROR("-1", "系统未知错误"),
    FORBIDDEN("403","没有权限请求当前方法"),
    METHOD_NOT_ALLOWED("405","不支持当前请求方法"),
    ERROR("-100","程序执行错误，需要对页面进行提示"),
    UNSUPPORTED_MEDIA_TYPE("415","不支持当前媒体类型");

    @Getter
    private String code;
    @Getter
    private String message;

    ResStatus(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
